GtkEntry *entry = GTK_ENTRY (widget);
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
int width, height;
+ graphene_rect_t bounds;
int i;
gtk_widget_get_content_size (widget, &width, &height);
+ graphene_rect_init (&bounds,
+ 0, 0,
+ width, height);
+
+ gtk_snapshot_push_clip (snapshot, &bounds, "Entry Clip");
+
/* Draw progress */
if (priv->progress_widget && gtk_widget_get_visible (priv->progress_widget))
gtk_widget_snapshot_child (widget, priv->progress_widget, snapshot);
}
gtk_entry_draw_undershoot (entry, snapshot);
+
+ gtk_snapshot_pop (snapshot);
}
static void